package com.antball.dd.abserver.alarm;

public class TeachesListener implements BellEventListener {

    @Override
    public void onBellRingsEvent(RingEvent ringEvent) {

        ringEvent.getSource();

        if (ringEvent.getBellTypeEnum() == RingEvent.BellTypeEnum.START) {
            System.out.println("老师上课了...");
        } else {
            System.out.println("老师下课了...");
        }
    }
}
